package com.opensicence.test.javafx;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;

public class SceneGraph extends Application {

	@Override
	public void start(Stage primaryStage) throws Exception {
		Group root = new Group();
		Scene scene = new Scene(root, 500, 500, Color.BLACK);
		Rectangle rectangle = new Rectangle(25, 25, 250,250);
		rectangle.setFill(Color.BLUE);
		root.getChildren().add(rectangle);
		primaryStage.setTitle("SceneGraph Test");
		primaryStage.setScene(scene);
		primaryStage.show();
	}
	public static void main(String[] args) {
		launch(args);
	}
}
